<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- qtextformat.cpp -->
  <title>QTextFrameFormat Class | Qt GUI 5.14.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.14</a></td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QTextFrameFormat</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.14.2 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QTextFrameFormat Class</h1>
<!-- $$$QTextFrameFormat-brief -->
<p>The QTextFrameFormat class provides formatting information for frames in a <a href="qtextdocument.html">QTextDocument</a>. <a href="#details">More...</a></p>
<!-- @@@QTextFrameFormat -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QTextFrameFormat&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qtextformat.html">QTextFormat</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qtexttableformat.html">QTextTableFormat</a></p>
</td></tr></table></div><ul>
<li><a href="qtextframeformat-members.html">List of all members, including inherited members</a></li>
</ul>
<p><b>Note:</b> All functions in this class are <a href="../qtdoc/threads-reentrancy.html">reentrant</a>.</p>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#BorderStyle-enum">BorderStyle</a></b> { BorderStyle_None, BorderStyle_Dotted, BorderStyle_Dashed, BorderStyle_Solid, BorderStyle_Double, &hellip;, BorderStyle_Outset }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#Position-enum">Position</a></b> { InFlow, FloatLeft, FloatRight }</td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#QTextFrameFormat">QTextFrameFormat</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#border">border</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#borderBrush">borderBrush</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTextFrameFormat::BorderStyle </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#borderStyle">borderStyle</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#bottomMargin">bottomMargin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTextLength </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#height">height</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#isValid">isValid</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#leftMargin">leftMargin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#margin">margin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#padding">padding</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTextFormat::PageBreakFlags </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#pageBreakPolicy">pageBreakPolicy</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTextFrameFormat::Position </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#position">position</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#rightMargin">rightMargin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setBorder">setBorder</a></b>(qreal <i>width</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setBorderBrush">setBorderBrush</a></b>(const QBrush &amp;<i>brush</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setBorderStyle">setBorderStyle</a></b>(QTextFrameFormat::BorderStyle <i>style</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setBottomMargin">setBottomMargin</a></b>(qreal <i>margin</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setHeight">setHeight</a></b>(const QTextLength &amp;<i>height</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setHeight-1">setHeight</a></b>(qreal <i>height</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setLeftMargin">setLeftMargin</a></b>(qreal <i>margin</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setMargin">setMargin</a></b>(qreal <i>margin</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setPadding">setPadding</a></b>(qreal <i>width</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setPageBreakPolicy">setPageBreakPolicy</a></b>(QTextFormat::PageBreakFlags <i>policy</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setPosition">setPosition</a></b>(QTextFrameFormat::Position <i>policy</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setRightMargin">setRightMargin</a></b>(qreal <i>margin</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setTopMargin">setTopMargin</a></b>(qreal <i>margin</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setWidth">setWidth</a></b>(const QTextLength &amp;<i>width</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#setWidth-1">setWidth</a></b>(qreal <i>width</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#topMargin">topMargin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTextLength </td><td class="memItemRight bottomAlign"><b><a href="qtextframeformat.html#width">width</a></b>() const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QTextFrameFormat-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>A text frame groups together one or more blocks of text, providing a layer of structure larger than the paragraph. The format of a frame specifies how it is rendered and positioned on the screen. It does not directly specify the behavior of the text formatting within, but provides constraints on the layout of its children.</p>
<p>The frame format defines the <a href="qtextframeformat.html#width">width</a>() and <a href="qtextframeformat.html#height">height</a>() of the frame on the screen. Each frame can have a <a href="qtextframeformat.html#border">border</a>() that surrounds its contents with a rectangular box. The border is surrounded by a <a href="qtextframeformat.html#margin">margin</a>() around the frame, and the contents of the frame are kept separate from the border by the frame's <a href="qtextframeformat.html#padding">padding</a>(). This scheme is similar to the box model used by Cascading Style Sheets for HTML pages.</p>
<p class="centerAlign"><img src="images/qtextframe-style.png" alt="" /></p><p>The <a href="qtextframeformat.html#position">position</a>() of a frame is set using <a href="qtextframeformat.html#setPosition">setPosition</a>() and determines how it is located relative to the surrounding text.</p>
<p>The validity of a QTextFrameFormat object can be determined with the <a href="qtextframeformat.html#isValid">isValid</a>() function.</p>
</div>
<p><b>See also </b><a href="qtextframe.html">QTextFrame</a> and <a href="qtextblockformat.html">QTextBlockFormat</a>.</p>
<!-- @@@QTextFrameFormat -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$BorderStyle$$$BorderStyle_None$$$BorderStyle_Dotted$$$BorderStyle_Dashed$$$BorderStyle_Solid$$$BorderStyle_Double$$$BorderStyle_DotDash$$$BorderStyle_DotDotDash$$$BorderStyle_Groove$$$BorderStyle_Ridge$$$BorderStyle_Inset$$$BorderStyle_Outset -->
<h3 class="fn" id="BorderStyle-enum"><a name="BorderStyle-enum"></a>enum QTextFrameFormat::<span class="name">BorderStyle</span></h3>
<p>This enum describes different border styles for the text frame.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_None</code></td><td class="topAlign tblval"><code>0</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_Dotted</code></td><td class="topAlign tblval"><code>1</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_Dashed</code></td><td class="topAlign tblval"><code>2</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_Solid</code></td><td class="topAlign tblval"><code>3</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_Double</code></td><td class="topAlign tblval"><code>4</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_DotDash</code></td><td class="topAlign tblval"><code>5</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_DotDotDash</code></td><td class="topAlign tblval"><code>6</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_Groove</code></td><td class="topAlign tblval"><code>7</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_Ridge</code></td><td class="topAlign tblval"><code>8</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_Inset</code></td><td class="topAlign tblval"><code>9</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::BorderStyle_Outset</code></td><td class="topAlign tblval"><code>10</code></td></tr>
</table></div>
<p>This enum was introduced or modified in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#borderStyle">borderStyle</a>() and <a href="qtextformat.html#Property-enum">FrameBorderStyle</a>.</p>
<!-- @@@BorderStyle -->
<!-- $$$Position$$$InFlow$$$FloatLeft$$$FloatRight -->
<h3 class="fn" id="Position-enum"><a name="Position-enum"></a>enum QTextFrameFormat::<span class="name">Position</span></h3>
<p>This enum describes how a frame is located relative to the surrounding text.</p>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::InFlow</code></td><td class="topAlign tblval"><code>0</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::FloatLeft</code></td><td class="topAlign tblval"><code>1</code></td></tr>
<tr><td class="topAlign"><code>QTextFrameFormat::FloatRight</code></td><td class="topAlign tblval"><code>2</code></td></tr>
</table></div>
<p><b>See also </b><a href="qtextframeformat.html#position">position</a>() and <a href="qtextformat.html#Property-enum">CssFloat</a>.</p>
<!-- @@@Position -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QTextFrameFormat[overload1]$$$QTextFrameFormat -->
<h3 class="fn" id="QTextFrameFormat"><a name="QTextFrameFormat"></a>QTextFrameFormat::<span class="name">QTextFrameFormat</span>()</h3>
<p>Constructs a text frame format object with the default properties.</p>
<!-- @@@QTextFrameFormat -->
<!-- $$$border[overload1]$$$border -->
<h3 class="fn" id="border"><a name="border"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">border</span>() const</h3>
<p>Returns the width of the border in pixels.</p>
<p><b>See also </b><a href="qtextframeformat.html#setBorder">setBorder</a>().</p>
<!-- @@@border -->
<!-- $$$borderBrush[overload1]$$$borderBrush -->
<h3 class="fn" id="borderBrush"><a name="borderBrush"></a><span class="type"><a href="qbrush.html">QBrush</a></span> QTextFrameFormat::<span class="name">borderBrush</span>() const</h3>
<p>Returns the brush used for the frame's border.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setBorderBrush">setBorderBrush</a>().</p>
<!-- @@@borderBrush -->
<!-- $$$borderStyle[overload1]$$$borderStyle -->
<h3 class="fn" id="borderStyle"><a name="borderStyle"></a><span class="type"><a href="qtextframeformat.html#BorderStyle-enum">QTextFrameFormat::BorderStyle</a></span> QTextFrameFormat::<span class="name">borderStyle</span>() const</h3>
<p>Returns the style of the frame's border.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setBorderStyle">setBorderStyle</a>().</p>
<!-- @@@borderStyle -->
<!-- $$$bottomMargin[overload1]$$$bottomMargin -->
<h3 class="fn" id="bottomMargin"><a name="bottomMargin"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">bottomMargin</span>() const</h3>
<p>Returns the width of the frame's bottom margin in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setBottomMargin">setBottomMargin</a>().</p>
<!-- @@@bottomMargin -->
<!-- $$$height[overload1]$$$height -->
<h3 class="fn" id="height"><a name="height"></a><span class="type"><a href="qtextlength.html">QTextLength</a></span> QTextFrameFormat::<span class="name">height</span>() const</h3>
<p>Returns the height of the frame's border rectangle.</p>
<p><b>See also </b><a href="qtextframeformat.html#setHeight">setHeight</a>().</p>
<!-- @@@height -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn" id="isValid"><a name="isValid"></a><span class="type">bool</span> QTextFrameFormat::<span class="name">isValid</span>() const</h3>
<p>Returns <code>true</code> if the format description is valid; otherwise returns <code>false</code>.</p>
<!-- @@@isValid -->
<!-- $$$leftMargin[overload1]$$$leftMargin -->
<h3 class="fn" id="leftMargin"><a name="leftMargin"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">leftMargin</span>() const</h3>
<p>Returns the width of the frame's left margin in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setLeftMargin">setLeftMargin</a>().</p>
<!-- @@@leftMargin -->
<!-- $$$margin[overload1]$$$margin -->
<h3 class="fn" id="margin"><a name="margin"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">margin</span>() const</h3>
<p>Returns the width of the frame's external margin in pixels.</p>
<p><b>See also </b><a href="qtextframeformat.html#setMargin">setMargin</a>().</p>
<!-- @@@margin -->
<!-- $$$padding[overload1]$$$padding -->
<h3 class="fn" id="padding"><a name="padding"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">padding</span>() const</h3>
<p>Returns the width of the frame's internal padding in pixels.</p>
<p><b>See also </b><a href="qtextframeformat.html#setPadding">setPadding</a>().</p>
<!-- @@@padding -->
<!-- $$$pageBreakPolicy[overload1]$$$pageBreakPolicy -->
<h3 class="fn" id="pageBreakPolicy"><a name="pageBreakPolicy"></a><span class="type"><a href="qtextformat.html#PageBreakFlag-enum">QTextFormat::PageBreakFlags</a></span> QTextFrameFormat::<span class="name">pageBreakPolicy</span>() const</h3>
<p>Returns the currently set page break policy for the frame/table. The default is <a href="qtextformat.html#PageBreakFlag-enum">QTextFormat::PageBreak_Auto</a>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtextframeformat.html#setPageBreakPolicy">setPageBreakPolicy</a>().</p>
<!-- @@@pageBreakPolicy -->
<!-- $$$position[overload1]$$$position -->
<h3 class="fn" id="position"><a name="position"></a><span class="type"><a href="qtextframeformat.html#Position-enum">QTextFrameFormat::Position</a></span> QTextFrameFormat::<span class="name">position</span>() const</h3>
<p>Returns the positioning policy for frames with this frame format.</p>
<p><b>See also </b><a href="qtextframeformat.html#setPosition">setPosition</a>().</p>
<!-- @@@position -->
<!-- $$$rightMargin[overload1]$$$rightMargin -->
<h3 class="fn" id="rightMargin"><a name="rightMargin"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">rightMargin</span>() const</h3>
<p>Returns the width of the frame's right margin in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setRightMargin">setRightMargin</a>().</p>
<!-- @@@rightMargin -->
<!-- $$$setBorder[overload1]$$$setBorderqreal -->
<h3 class="fn" id="setBorder"><a name="setBorder"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setBorder</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i>)</h3>
<p>Sets the <i>width</i> (in pixels) of the frame's border.</p>
<p><b>See also </b><a href="qtextframeformat.html#border">border</a>().</p>
<!-- @@@setBorder -->
<!-- $$$setBorderBrush[overload1]$$$setBorderBrushconstQBrush& -->
<h3 class="fn" id="setBorderBrush"><a name="setBorderBrush"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setBorderBrush</span>(const <span class="type"><a href="qbrush.html">QBrush</a></span> &amp;<i>brush</i>)</h3>
<p>Sets the <i>brush</i> used for the frame's border.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#borderBrush">borderBrush</a>().</p>
<!-- @@@setBorderBrush -->
<!-- $$$setBorderStyle[overload1]$$$setBorderStyleQTextFrameFormat::BorderStyle -->
<h3 class="fn" id="setBorderStyle"><a name="setBorderStyle"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setBorderStyle</span>(<span class="type"><a href="qtextframeformat.html#BorderStyle-enum">QTextFrameFormat::BorderStyle</a></span> <i>style</i>)</h3>
<p>Sets the <i>style</i> of the frame's border.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#borderStyle">borderStyle</a>().</p>
<!-- @@@setBorderStyle -->
<!-- $$$setBottomMargin[overload1]$$$setBottomMarginqreal -->
<h3 class="fn" id="setBottomMargin"><a name="setBottomMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setBottomMargin</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i>)</h3>
<p>Sets the frame's bottom <i>margin</i> in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#bottomMargin">bottomMargin</a>().</p>
<!-- @@@setBottomMargin -->
<!-- $$$setHeight[overload1]$$$setHeightconstQTextLength& -->
<h3 class="fn" id="setHeight"><a name="setHeight"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setHeight</span>(const <span class="type"><a href="qtextlength.html">QTextLength</a></span> &amp;<i>height</i>)</h3>
<p>Sets the frame's <i>height</i>.</p>
<p><b>See also </b><a href="qtextframeformat.html#height">height</a>().</p>
<!-- @@@setHeight -->
<!-- $$$setHeight$$$setHeightqreal -->
<h3 class="fn" id="setHeight-1"><a name="setHeight-1"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setHeight</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i>)</h3>
<p>This is an overloaded function.</p>
<p>Sets the frame's <i>height</i>.</p>
<!-- @@@setHeight -->
<!-- $$$setLeftMargin[overload1]$$$setLeftMarginqreal -->
<h3 class="fn" id="setLeftMargin"><a name="setLeftMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setLeftMargin</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i>)</h3>
<p>Sets the frame's left <i>margin</i> in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#leftMargin">leftMargin</a>().</p>
<!-- @@@setLeftMargin -->
<!-- $$$setMargin[overload1]$$$setMarginqreal -->
<h3 class="fn" id="setMargin"><a name="setMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setMargin</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i>)</h3>
<p>Sets the frame's <i>margin</i> in pixels. This method also sets the left, right, top and bottom margins of the frame to the same value. The individual margins override the general margin.</p>
<p><b>See also </b><a href="qtextframeformat.html#margin">margin</a>().</p>
<!-- @@@setMargin -->
<!-- $$$setPadding[overload1]$$$setPaddingqreal -->
<h3 class="fn" id="setPadding"><a name="setPadding"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setPadding</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i>)</h3>
<p>Sets the <i>width</i> of the frame's internal padding in pixels.</p>
<p><b>See also </b><a href="qtextframeformat.html#padding">padding</a>().</p>
<!-- @@@setPadding -->
<!-- $$$setPageBreakPolicy[overload1]$$$setPageBreakPolicyQTextFormat::PageBreakFlags -->
<h3 class="fn" id="setPageBreakPolicy"><a name="setPageBreakPolicy"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setPageBreakPolicy</span>(<span class="type"><a href="qtextformat.html#PageBreakFlag-enum">QTextFormat::PageBreakFlags</a></span> <i>policy</i>)</h3>
<p>Sets the page break policy for the frame/table to <i>policy</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtextframeformat.html#pageBreakPolicy">pageBreakPolicy</a>().</p>
<!-- @@@setPageBreakPolicy -->
<!-- $$$setPosition[overload1]$$$setPositionQTextFrameFormat::Position -->
<h3 class="fn" id="setPosition"><a name="setPosition"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setPosition</span>(<span class="type"><a href="qtextframeformat.html#Position-enum">QTextFrameFormat::Position</a></span> <i>policy</i>)</h3>
<p>Sets the <i>policy</i> for positioning frames with this frame format.</p>
<p><b>See also </b><a href="qtextframeformat.html#position">position</a>().</p>
<!-- @@@setPosition -->
<!-- $$$setRightMargin[overload1]$$$setRightMarginqreal -->
<h3 class="fn" id="setRightMargin"><a name="setRightMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setRightMargin</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i>)</h3>
<p>Sets the frame's right <i>margin</i> in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#rightMargin">rightMargin</a>().</p>
<!-- @@@setRightMargin -->
<!-- $$$setTopMargin[overload1]$$$setTopMarginqreal -->
<h3 class="fn" id="setTopMargin"><a name="setTopMargin"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setTopMargin</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>margin</i>)</h3>
<p>Sets the frame's top <i>margin</i> in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#topMargin">topMargin</a>().</p>
<!-- @@@setTopMargin -->
<!-- $$$setWidth[overload1]$$$setWidthconstQTextLength& -->
<h3 class="fn" id="setWidth"><a name="setWidth"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setWidth</span>(const <span class="type"><a href="qtextlength.html">QTextLength</a></span> &amp;<i>width</i>)</h3>
<p>Sets the frame's border rectangle's <i>width</i>.</p>
<p><b>See also </b><a href="qtextframeformat.html#width">width</a>() and <a href="qtextlength.html">QTextLength</a>.</p>
<!-- @@@setWidth -->
<!-- $$$setWidth$$$setWidthqreal -->
<h3 class="fn" id="setWidth-1"><a name="setWidth-1"></a><span class="type">void</span> QTextFrameFormat::<span class="name">setWidth</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i>)</h3>
<p>This is an overloaded function.</p>
<p>Convenience method that sets the width of the frame's border rectangle's width to the specified fixed <i>width</i>.</p>
<!-- @@@setWidth -->
<!-- $$$topMargin[overload1]$$$topMargin -->
<h3 class="fn" id="topMargin"><a name="topMargin"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QTextFrameFormat::<span class="name">topMargin</span>() const</h3>
<p>Returns the width of the frame's top margin in pixels.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtextframeformat.html#setTopMargin">setTopMargin</a>().</p>
<!-- @@@topMargin -->
<!-- $$$width[overload1]$$$width -->
<h3 class="fn" id="width"><a name="width"></a><span class="type"><a href="qtextlength.html">QTextLength</a></span> QTextFrameFormat::<span class="name">width</span>() const</h3>
<p>Returns the width of the frame's border rectangle.</p>
<p><b>See also </b><a href="qtextframeformat.html#setWidth">setWidth</a>() and <a href="qtextlength.html">QTextLength</a>.</p>
<!-- @@@width -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
